package com.cis.education.service.impl;

import java.util.List;

import com.cis.common.core.text.Convert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cis.education.mapper.EduFingerPrintMapper;
import com.cis.education.domain.EduFingerPrint;
import com.cis.education.service.IEduFingerPrintService;

/**
 * 指纹管理Service业务层处理
 * 
 * @author admin
 * @date 2022-03-24
 */
@Service
public class EduFingerPrintServiceImpl implements IEduFingerPrintService 
{
    @Autowired
    private EduFingerPrintMapper eduFingerPrintMapper;

    /**
     * 查询指纹管理
     * 
     * @param id 指纹管理主键
     * @return 指纹管理
     */
    @Override
    public EduFingerPrint selectEduFingerPrintById(Integer id)
    {
        return eduFingerPrintMapper.selectEduFingerPrintById(id);
    }

    /**
     * 查询指纹管理
     * @param studentId 学生学号
     * @return 指纹管理
     */
    @Override
    public EduFingerPrint selectEduFingerPrintByStudentId(String studentId) {
        return eduFingerPrintMapper.selectEduFingerPrintByStudentId(studentId);
    }

    /**
     * 查询指纹管理列表
     * 
     * @param eduFingerPrint 指纹管理
     * @return 指纹管理
     */
    @Override
    public List<EduFingerPrint> selectEduFingerPrintList(EduFingerPrint eduFingerPrint)
    {
        return eduFingerPrintMapper.selectEduFingerPrintList(eduFingerPrint);
    }

    /**
     * 新增指纹管理
     * 
     * @param eduFingerPrint 指纹管理
     * @return 结果
     */
    @Override
    public int insertEduFingerPrint(EduFingerPrint eduFingerPrint)
    {
        return eduFingerPrintMapper.insertEduFingerPrint(eduFingerPrint);
    }

    /**
     * 修改指纹管理
     * 
     * @param eduFingerPrint 指纹管理
     * @return 结果
     */
    @Override
    public int updateEduFingerPrint(EduFingerPrint eduFingerPrint)
    {
        return eduFingerPrintMapper.updateEduFingerPrint(eduFingerPrint);
    }

    /**
     * 批量删除指纹管理
     * 
     * @param ids 需要删除的指纹管理主键
     * @return 结果
     */
    @Override
    public int deleteEduFingerPrintByIds(String ids)
    {
        return eduFingerPrintMapper.deleteEduFingerPrintByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除指纹管理信息
     * 
     * @param id 指纹管理主键
     * @return 结果
     */
    @Override
    public int deleteEduFingerPrintById(Integer id)
    {
        return eduFingerPrintMapper.deleteEduFingerPrintById(id);
    }
}
